﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace BinanceExchange.API.Models.Response
{
    /// <summary>
    /// Response with account infromation associated with key
    /// </summary>
    [DataContract]
    public class AccountInformationResponse
    {
        [DataMember(Order = 1)]
        public int MakerCommission { get; set; }

        [DataMember(Order = 2)]
        public int TakerCommission { get; set; }

        [DataMember(Order = 3)]
        public int BuyerCommission { get; set; }

        [DataMember(Order = 4)]
        public int SellerCommission { get; set; }

        [DataMember(Order = 5)]
        public bool CanTrade { get; set; }

        [DataMember(Order = 6)]
        public bool CanWithdraw { get; set; }

        [DataMember(Order = 7)]
        public bool CanDeposit { get; set; }

        [DataMember(Order = 8)]
        public List<BalanceResponse> Balances { get; set; }
    }


    /**
     * <summary>
<para>
 {
        "accountAlias": "SgsR",    // 账户唯一识别码 
        "asset": "USDT",        // 资产
        "balance": "122607.35137903",   // 总余额
        "crossWalletBalance": "23.72469206", // 全仓余额
        "crossUnPnl": "0.00000000"  // 全仓持仓未实现盈亏
        "availableBalance": "23.72469206",       // 可用余额
        "maxWithdrawAmount": "23.72469206"     // 最大可转出余额
    }

        </para>
     * </summary>
     */
    public class FBalance
    {
        public string accountAlias { get; set; }
        public string asset { get; set; }
        public decimal balance { get; set; }
        public decimal crossWalletBalance { get; set; }
        public decimal crossUnPnl { get; set; }
        public decimal availableBalance { get; set; }
        public decimal maxWithdrawAmount { get; set; }
    }

}